import { defineUserConfig } from "vuepress";
import type { DefaultThemeOptions } from "vuepress";
import recoTheme from "vuepress-theme-reco";
import { viteBundler } from '@vuepress/bundler-vite'


export default defineUserConfig({
  base: "/blog/",
  title: "努力，奋斗!",
  description: "Just playing around",
  theme: recoTheme({
    style: "@vuepress-reco/style-default",
    logo: "/logo.png",
    author: "tzz",

    authorAvatar: "/head.png",
    docsRepo: "https://github.com/a297542455",
    docsBranch: "main",
    docsDir: "example",
    // series 为原 sidebar
    autoSetSeries: true,
    // series: {
    //   "/docs/": [
    //     {
    //       text: "健康问问-vue3",
    //       children: ["api", "plugin", "vue3"],
    //     },
    //     {
    //       text: "淘气鸭-uniapp",
    //       children: ["01-项目", "02-首页木块", "03-推荐模块"],
    //     },
    //   ],
    // },
    navbar: [
      { text: "Home", link: "/",icon: 'Home', },
      {
        text: "淘气鸭",
        link: "/docs/tqy/01-项目.html",
        icon: 'FruitBowl',
      },
      {
        text: "健康问问",
        link: "/docs/jkww/01-index.html",
        icon: 'Monster',
      },
      // 标签路径
      // { text: "Tags", link: "/tags/tag100/1/" },
      // 下拉路径
      // {
      //   text: "Docs",
      //   children: [
      //     { text: "vuepress-reco", link: "/docs/theme-reco/theme" },
      //     { text: "vuepress-theme-reco", link: "/blogs/other/guide" },
      //   ],
      // },
    ],
    // commentConfig: {
    //   type: 'valie',
    //   // options 与 1.x 的 valineConfig 配置一致
    //   options: {
    //     // appId: 'xxx',
    //     // appKey: 'xxx',
    //     // placeholder: '填写邮箱可以收到回复提醒哦！',
    //     // verify: true, // 验证码服务
    //     // notify: true,
    //     // recordIP: true,
    //     // hideComments: true // 隐藏评论
    //   },
    // },
  }),
  // debug: true,
});
